  <template>
    <h2>我是Home的内容</h2>
  </template>

  <script>
  export default {
    // eslint-disable-next-line vue/multi-word-component-names
    name: "Home",
    beforeDestroy() {
      console.log('Home组件即将被销毁了')
    },
    mounted() {
      console.log('Home组件挂载完毕了')
      window.homeRoute = this.$route
      window.homeRouter = this.$router
    }
  }
  </script>
